objs = mutex.o rwlist.o thread.o epollserver.o server.o socketlibfunction.o stack.o list.o array.o typepool.o
client_main:$(objs) client_main.o
	gcc $(objs) client_main.o -lpthread -o client_main 
server_main:$(objs) server_main.o
	gcc $(objs) server_main.o -lpthread -o server_main
mutex.o:../mutex.c
	gcc -c -I../ ../mutex.c -o mutex.o
rwlist.o:../rwlist.c
	gcc -c -I../ ../rwlist.c -o rwlist.o
thread.o:../thread.c
	gcc -c -I../ ../thread.c -o thread.o
stack.o:../stack.c
	gcc -c -I../ ../stack.c -o stack.o
server_main.o:./server_main.c
	gcc -c -I../ ./server_main.c -o server_main.o
client_main.o:./client_main.c
	gcc -c -I../ client_main.c -o client_main.o
list.o:../list.c
	gcc -c -I../ ../list.c -o list.o
array.o:../array.c
	gcc -c -I../ ../array.c -o array.o
typepool.o:../typepool.c
	gcc -c -I../ ../typepool.c -o typepool.o
epollserver.o:../epollserver.c
	gcc -c -I../ ../epollserver.c -o epollserver.o
server.o:../server.c
	gcc -c -I../ ../server.c -o server.o
socketlibfunction.o:../socketlibfunction.c
	gcc -c -I../ ../socketlibfunction.c -o socketlibfunction.o
clean:
	-rm server_main client_main $(objs)
